package kr.ac.hansung.www;

import java.util.ArrayList;

public class ConnectServer {
	private String url;
	private int port;
	ArrayList<Event> tEventList = new ArrayList<Event>();

	public void ConnectServer(String url, int port) {
		this.url = url;
		this.port = port;
	}

	public void sendGPS(GPS gps) {

	}

	public GPS[] receiveGPS() {
		return null;
	}

	public GPS[] receiveTracking() {
		GPS[] tGPS = new GPS[3];
		tGPS[0] = new GPS();
		tGPS[1] = new GPS();
		tGPS[2] = new GPS();

		return tGPS;
	}

	public ArrayList<Event> reciveEventList() {
		return tEventList;
	}

	public void addEvent() {

	}

	public Event sendEvent() {
		return null;
	}

	public Event[] receiveEvent() {
		return null;
	}

	public void sendNewEvent(String eventId, String eventName) {
		Event tEvent = new Event();
		tEvent = new Event();
		tEvent.setId(eventId);
		tEvent.setName(eventName);
		tEvent.setLeaderId("01094971093");

		tEventList.add(tEvent);
	}
}
